package com.github.data_manage.domain.po

import com.fasterxml.jackson.annotation.JsonIgnore
import jakarta.persistence.Column
import jakarta.persistence.Lob
import jakarta.persistence.MappedSuperclass
import java.math.BigDecimal

@MappedSuperclass
abstract class AbstractInvestmentsRelation {

    open var investmentId: Int? = null

    //投资案例名称
    open var investmentName: String? = null

    // L/S仓
    open var lsPosition: String? = null

    // 投资占比
    open var scale: BigDecimal? = null

    // 投资金额
    open var amount: BigDecimal? = null

    // 初始投资时间
    open var startInvestTime: String? = null

    // 操作
    open var operation: String? = null

    // 投资方式
    open var investmentsMethod: String? = null

    // 投资理由
    open var reason: String? = null

    // 现在是否持有
    open var currentHold: String? = null

    // 观点
    open var viewPoint: String? = null

    // 投资风格
    open var style: String? = null

    // 备注
    @Lob
    @Column(columnDefinition = "longtext")
    open var note: String? = null

    // 清仓天数
    open var cleanDays: BigDecimal? = null

    // 更新时间
    open var updateTime: String? = null

    //"与上次更新的持仓变化（百分比）
    open var changeScale: BigDecimal? = null

    // 是否修改过
    @JsonIgnore
    open var modified: Boolean = false
}
